package com.hmkj.core.api.juhe.bean.epay;
/**
 * Description:快捷支付（KJPAY）支持银行参数PaymentType
 * Created by shiyaxiang on 2017/1/3 16:39.
 */
public enum KjPayBankCode {

    BOC("BOC","中国银行"),
    ABC("ABC","农业银行"),
    ICBC("ICBC","工商银行"),
    CCB("CCB","建设银行"),
    BCM("BCM","交通银行"),
    CNCB("CITIC","中信银行"),
    CMB("CMB","招商银行"),
    CIB("CIB","兴业银行"),
    CEB("CEB","光大银行"),
    SPDB("SPDB","浦发银行"),
    PSBC("PSBC","邮政储蓄银行"),
    GDB("GDB","广发银行"),
    PAB("PAB","平安银行");

    private String state;

    private String stateinfo;

    KjPayBankCode(String state , String stateinfo){
        this.state = state;
        this.stateinfo = stateinfo;
    }

    public String getState(){
        return state;
    }

    public String getStateinfo(){
        return stateinfo;
    }

    public static KjPayBankCode stateOf(String index){
        for (KjPayBankCode state : values()) {
            if(state.getState().equals(index)){
                return state;
            }
        }
        return null;
    }
}
